import axios from "../../utils/request"
import qs from 'qs'
//查询
export const ListReqSearch = (params:any) => axios({
    url: '/doctor/search_doctor',
    method: 'get',
    params
})
export const ListReq = (params:any) => axios({
    url: '/doctor/list_doctor',
    method: 'get',
    params
})
//获取医生排版信息
export const getDoctorReq = (params: any) => axios({
    url: '/doctor/get_dn_dayline',
    method: 'get',
    params,
})

//医生排班
export const RosteringDoctorReq = (data: any,) => {
    return axios({
        url: `/doctor/edit_dn_dayline`,
        method: 'post',
        data: {
            id: data.id,
            newdate: qs.stringify(data.newdate)
        }
    })

}
//修改医生
export const WorkDoctorReq = (data: any,) => {
    return axios({
        url: `/doctor/edit_doctor`,
        method: 'post',
        data
    })

}
//护士
export const NursetReqSearch = (params: any) => axios({
    url: '/doctor/search_nurse',
    method: 'get',
    params,
})
//修改护士
export const WorkNuserrReq = (data: any,) => {
    return axios({
        url: `/doctor/edit_nurse`,
        method: 'post',
        data
    })

}
//获取科室列表
export const departmentlist = () => {
    return axios({
        url: `/department/departnames`,
     

    })

}
//查询药品列表
export const drugsDrugstype = () => {
    return axios({
        url: `/drugs/drugstype`,
     

    })

}
